package day0615;

import java.util.ArrayList;

public class ArrayListDemo {
    public static void main(String[] args) {
        ArrayList  list=new ArrayList();//1.创建

        list.add("刷子");//2.存入

        String str=(String) list.get(0);//3.获取
        System.out.println(str);

        list.remove("刷子");//4.删除
        list.remove(0);//4.删除


        System.out.println(list);//5.打印

    }
}
